php forum
php mysql forum
php mysql smarty
 
Topic Options
#315663 - 09/13/07 05:33 PM [7.2.2] Check nr of lines in a signature
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
This small hack checks the nr of lines in a signature when a user edits their profile.

It defaults to 4.

Header text in the hack happely stolen from SD. Kinda makes things more clear in the textfile.

for those wanting to check existing users for signatures with more then 4 lines, you can use this query:

Code:
SELECT `USER_REAL_EMAIL` 
FROM `ubbt_USER_PROFILE` 
WHERE `USER_SIGNATURE` LIKE "%<br />%<br />%<br />%<br />%"


Add more or remove some <br />'s if you want more or less lines. This query assumes you gave ubbt_ as prefix for your tables.

Oh, little added note. I do know this does not fix up when you have signatures with long lines that word-wrap. But it handles 9 out of 10 cases on our board.


Attachments
sigsize.txt (30 downloads)

_________________________

Top
#315664 - 09/13/07 05:55 PM Re: [7.2.2] Check nr of lines in a signature [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
hrm, i'm kinda digging that for simplicity!

good stuff blaask and i was wondering where my Header text went laugh
_________________________

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks